home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / os2 / cenvi2.arj / DIRSTAT.CMD < prev    next >
OS/2 REXX Batch file  |  1993-06-06  |  562b  |  22 lines

  1. @echo OFF
  2. REM DirStat.cmd - Use Find#.cmm to parse directory listings and output
  3. REM               statistics about the current directory.
  4.  
  5. SETLOCAL
  6. set DELDIR=
  7. set FIND_TEMP_FILE=DSTemp.cmd
  8.  
  9. dir | find "file(s)" | cenvi Find#.cmm
  10. call %FIND_TEMP_FILE%
  11. set FILE_COUNT=%NUMBER%
  12.  
  13. if exist %FIND_TEMP_FILE% del %FIND_TEMP_FILE%
  14. dir | find "file(s)" | cenvi Find#.cmm -1
  15. call %FIND_TEMP_FILE%
  16.  
  17. ECHO The current directory contains %FILE_COUNT% files and uses %NUMBER% bytes.
  18.  
  19. REM Clean-up
  20. if exist %FIND_TEMP_FILE% del %FIND_TEMP_FILE%
  21. ENDLOCAL
  22.